<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h1>{{msg|msgFormat("果")|test}}</h1>
		</div>
		<script type="text/javascript">
			Vue.filter('msgFormat',function(msg,arg){
				return msg.replace(/国/g,arg)
			})
			Vue.filter('test',function(msg){
				return msg+"============="
			})
			new Vue({
				el:"#app",
				data:{
					msg:"中华人民共和国国国国国国国国国国"
				}
			});
		</script>
	</body>
</html>
